Port BUSACCESS - LIN¶
VECTOR-SIL-KIT access to LIN
Stimulation¶
此端口不具备激励能力。
Properties 🛈¶
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
Network name |
string |
Name of the network as defined in SIL-Kit Config yaml. |
|||
Controller name |
string |
Name of the controller as defined in SIL-Kit Config yaml. |
|||
Baud rate |
19200 |
float |
Baudrate. Numbers lesser than 100 are interpreted as kbit/s, numbers larger than 100 as bit/s |
||
Do not stop RBS |
☐ |
bool |
Restbus simulation stays active beyond test case execution. |
||
LIN version |
‘1.3’ |
[‘1.3’, ‘2.0’] |
string |
LIN protocol version to be used. Only affects calculation and validation of the frame checksum. 1.3 = received frames must have a classic checksum. 2.0 = received frames may have enhanced or classic checksum. If the database does not define a checksum mode for a specific frame to be sent, this option will be taken into account to use either classic (1.3) or enhanced (2.0) checksum mode. |
|
LIN master |
☐ |
bool |
Selection whether the port acts as a master (True) or a slave (False). |
||
Bus-DB |
string |
Jobs 🛈¶
ClearFrame¶
清除指定帧的接收缓冲区
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FrameId |
int |
Frame ID |
返回值
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
result |
ByteStream |
ByteStream |
DeregisterFrameForInbox¶
Ungeristers a frame that is being streamed to an inbox
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FrameId |
int |
Frame ID |
|||
Inbox |
object |
现有收件箱 |
EnableFrame¶
Makes this slave respond (or not respond) to the specified ID. You can use this instead of “Change PDU timing”. The frame must have been initialized via “InitFrame”.
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
enable |
[False, True] |
bool |
Enable or disable |
||
frameId |
int |
Frame ID |
GetFirstValue¶
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FrameName |
string |
Frame name |
|||
NodeName |
string |
电子控制单元的名称 |
|||
RawValue |
False |
[False, True] |
bool |
如果为 ‘True’,则返回原始值。 |
|
Reset |
False |
[False, True] |
bool |
若为 ‘True’,则第一个接收到的值在被读取后将被删除 |
|
SignalName |
string |
信号名称 |
InitFrame¶
Registers the frame for use with other jobs
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FrameId |
int |
Frame ID |
ReadFrame¶
Reads the given frame ID (use InitLinFrame before!)
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
doDelete |
False |
[False, True] |
bool |
若为 “True”,则在读取后删除该帧 |
|
FrameId |
int |
Frame ID |
返回值
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
result |
ByteStream |
ByteStream |
ReadFrameEx¶
Reads the given frame ID (use InitLinFrame before!)
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
doDelete |
False |
[False, True] |
bool |
若为 “True”,则在读取后删除该帧 |
|
FrameId |
int |
Frame ID |
返回值
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
result |
object |
LinFrame |
RegisterFrameForInbox¶
注册一个帧,以便将其流式传输到 Inbox。
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FrameId |
int |
Frame ID |
|||
Inbox |
object |
现有收件箱 |
|||
saveAsLinFrame |
False |
[False, True] |
bool |
If True, the frame is saved as a LinFrame object, else as a ByteStream |
ResetFirstValue¶
清除给定信号的第一个已接收值
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
FrameName |
string |
Frame name |
|||
NodeName |
string |
电子控制单元的名称 |
|||
SignalName |
string |
信号名称 |
SendFrame¶
All in one: Set data, temporarily enable a frame, and send a master request. Frame ID must be registered in advance via the job “InitFrame”.
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
checkSumMode |
‘Default’ |
[‘Enhanced’, ‘Classic’, ‘Default’] |
string |
Mode of the checksum calculation. With default the LIN version from the TBC is used for the determination. |
|
DataByteStream |
ByteStream |
要发送的数据 |
|||
FrameId |
int |
Frame ID |
SendMasterRequest¶
Transmits the message header with the given frame id as master.
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
frameId |
int |
Frame ID |
SetFrame¶
Sets the data to be sent for the entire message at once (instead of for each individual signal). Additionally, the message has to be activated via “Change PDU timing” or the job “EnableFrame”.
Parameterization
Parameter
Name |
在以下情况下可用 |
默认值 |
有效值 |
Type |
Description |
|---|---|---|---|---|---|
checkSumMode |
‘Default’ |
[‘Enhanced’, ‘Classic’, ‘Default’] |
string |
Mode of the checksum calculation. With default the LIN version from the TBC is used for the determination. |
|
data |
ByteStream |
Data as ByteStream |
|||
frameId |
int |
Frame ID |